package com.example.demo.query;


import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class UserQuery implements Serializable {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 2, max = 50, message = "用户名长度的范围为2~50")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @Size(min = 6, message = "用户名长度最小为6")
    private String password;
    private String phone ;

}
